#ifndef __WATCHPOINT_H__
#define __WATCHPOINT_H__

#include "common.h"

typedef struct watchpoint {
  int NO;
  struct watchpoint *next;

  /* TODO: Add more members if necessary */
  char expr[32];
  uint32_t value; // the present value of expr
} WP;


WP* new_wp(char* ex);
void free_wp(uint8_t no);

WP* update_wp(uint32_t* pv);
void look_wps(void);


#endif
